from django.urls import path

from users import views

app_name = "Users"
urlpatterns = [
    # 跳转到查询页
    path('getList/', views.getList, name="getList"),
    # 查询分页列表
    path('list/', views.list, name="list"),
    # 带条件查询
    path('searchList/', views.searchList, name="searchList"),
    # 跳转到添加窗口
    path('showAdd/', views.show_add, name="showAdd"),
    # 添加
    path('add/', views.add, name="add"),
    # 跳转到编辑窗口
    path('showEdit/<path:userId>', views.show_edit, name="showEdit"),
    # 修改
    path('edit/', views.edit, name="edit"),
    # 删除一条
    path('del/', views.delete, name="del"),
    path('dels/', views.deletes),
]
